package tjut.Control;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import tjut.Bean.UseBean;
import tjut.Service.IUseInfoService;
@Controller("usControl")
public class UseInfoControl {
    @Autowired
	private IUseInfoService useService;
	public List<UseBean> selectAllUseInforr(){
		//调用dao层完成数据库查询操作
		List<UseBean> lstUs=useService.selectAllUseInfo();
		//打印用户信息
		for (UseBean useBean : lstUs) {
			System.out.println(useBean.toString());
		}
		return lstUs;
	}
	
	public int saveUse(){
		
		return 0;
	}
}
